﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Framework_Tool
{
    /// <summary>
    /// Interaction logic for StudentSearch.xaml
    /// </summary>
    public partial class StudentSearch : Page
    {
        public StudentSearch()
        {
            InitializeComponent();
        }

        private void viewStudentBtn_Click_1(object sender, RoutedEventArgs e)
        {
            StudentView stdtViewWindow = new StudentView();
            stdtViewWindow.Content = null;
            mainContent.Children.Add(stdtViewWindow.mainContent);
        }

        private void addStudentBtn_Click_1(object sender, RoutedEventArgs e)
        {
            StudentAdd stdtAddWindow = new StudentAdd();
            stdtAddWindow.Content = null;
            mainContent.Children.Add(stdtAddWindow.mainContent);
        }

        private void updateStudentBtn_Click_1(object sender, RoutedEventArgs e)
        {
            StudentUpdate stdtUpdateWindow = new StudentUpdate();
            stdtUpdateWindow.Content = null;
            mainContent.Children.Add(stdtUpdateWindow.mainContent);
        }

        private void deleteStudentBtn_Click_1(object sender, RoutedEventArgs e)
        {
            StudentDelete stdtDeleteWindow = new StudentDelete();
            stdtDeleteWindow.Content = null;
            mainContent.Children.Add(stdtDeleteWindow.mainContent);
        }

        private void stdtSearch_Click_1(object sender, RoutedEventArgs e)
        {
            if (stdtSearchTxt.Text.Length == 0)
            {
                MessageBox.Show("Please enter a search term.");
            }
            if (stdtIDRadioB.IsChecked == true)
            {
            }
            if (stdtFNameRadioB.IsChecked == true)
            {
            }
            if (stdtSurnameRadioB.IsChecked == true)
            {

            }
        }

        private void mainContent_Loaded_1(object sender, RoutedEventArgs e)
        {
            viewStudentBtn.FontWeight = FontWeights.Normal;
            addStudentBtn.FontWeight = FontWeights.Normal;
            updateStudentBtn.FontWeight = FontWeights.Normal;
            deleteStudentBtn.FontWeight = FontWeights.Normal;
            searchStudentBtn.FontWeight = FontWeights.ExtraBold;

        }
    }
}
